<div class="comment" id="c<?php echo $data->id; ?>">

    <?php echo CHtml::link("#{$data->id}", $data->url, array(
        'class'=>'cid',
        'title'=>Yii::t('site','Permalink to this comment'),
    )); ?>

    <div class="author">
        <?php echo $data->author->recordName; ?> says on
        <?php echo CHtml::link(CHtml::encode($data->issue->summary), $data->issue->url); ?>
    </div>

    <div class="time">
        <?php if($data->status==Comment::STATUS_PENDING): ?>
            <span class="pending"><?php echo CHtml::encode(Yii::t('site','Pending approval')); ?></span> |
            <?php echo CHtml::linkButton(Yii::t('site','Approve'), array(
                'submit'=>array('comment/approve','id'=>$data->id),
            )); ?> |
        <?php endif; ?>
        <?php echo CHtml::link(ICON_EDIT,array('comment/update','id'=>$data->id)); ?> |
        <?php echo CHtml::linkButton(ICON_DELETE, array(
            'submit'=>array('comment/delete','id'=>$data->id),
            'confirm'=>Yii::t('site',"Are you sure to delete comment #{id}?",array('{id}'=>$data->id)),
        )); ?> |
        <?php echo Yii::app()->dateFormatter->formatDateTime($data->create_time,'medium','short'); ?>
    </div>

    <div class="content">
        <?php echo nl2br(CHtml::encode($data->content)); ?>
    </div>

</div><!-- comment -->
